function y = bdexp(x)
% BDEXP function
%x0=[1,1,...,1];
n=length(x);
y=0;
for i=1:n-2
    y=y+(x(i)+x(i+1))*exp(-x(i+2)*(x(i)+x(i+1)));
end


